﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="main.aspx.cs" Inherits="WR.UI.MobWebApp.main" %>

<!doctype html>
<html lang="es" manifest="app.manifest"><head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<title>Maestro Per&uacute;</title>
	<meta name="description" content="">
	<meta name="author" content="Crystalis Consulting">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	
	<link rel="shortcut icon" href="/favicon.ico">
	<link rel="stylesheet" href="css/style.css?v=2">
	<link rel="stylesheet" media="handheld" href="css/handheld.css?v=2">
	<script src="js/libs/modernizr-1.7.min.js" type="text/javascript"></script></head>
<body>
    <form id="frmMain" runat="server">
	<%--<div id="container" style="background-image: url(img/header_mobile.jpg); background-repeat: repeat-x;">--%>
	<div id="container">
		<header>
		    <div id="head_title"><h1>Maestro Per&uacute; - Materiales</h1></div>
		    <br />
            <label id="lblErrorMsg" runat="server" class="errMsg"></label><label id="lblOkMsg" runat="server"></label>
		</header>
        <br />
        <article>
            <label>C&oacute;digo</label><br />
            <input id="txtMatnr" runat="server" maxlength="18" />
            <br />
            <label>Descripci&oacute;n</label><br />
            <input id="txtMaktx" runat="server" maxlength="40" />
            <br /><br />
            <asp:Button ID="btnFind" runat="server" Text="Buscar" OnClick="btnFind_Click" />
        </article>
        <br />
        <article>            
            <asp:ListView ID="lvMateriales2" runat="server">
                <LayoutTemplate>
                    <table runat="server" id="table1">
                        <tr><th>Material</th><th>Descripci&oacute;n</th><th>Stock</th><th>Precio</th></tr>
                        <tr runat="server" id="itemPlaceholder"></tr>
                    </table>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr runat="server">
                      <td id="Td1" runat="server">
                        <a href="material.aspx?mid=<%#Eval("Codigo") %>"><%#Eval("Codigo") %></a>
                      </td>
                      <td id="Td2" runat="server">
                        <%#Eval("Descripcion") %>
                      </td>
                      <td id="Td3" runat="server" style="text-align:right;">
                        <%#Eval("Stock", "{0:,0}") %>
                      </td>
                      <td id="Td4" runat="server" style="text-align:right;">
                        <%#Eval("Precio", "{0:,0.00}")%>
                      </td>
                    </tr>
                </ItemTemplate>
                <EmptyDataTemplate>
                    No se encontraron resultados para su b&uacute;squeda.
                </EmptyDataTemplate>
            </asp:ListView>
        </article>
        
        <br />
		<footer>
		    <nav>
                <a href="main.aspx">Materiales</a> | 
                <a href="crearcot.aspx">Crear/Modif doc.</a> | 
                <a href="conscot.aspx">Consulta doc.</a> | 
                <a href="login.aspx">Salir</a>
            </nav>
            <br />
            <p>Copyright &copy; 2011 Maestro Per&uacute;</p>
            <p>Desarrollado por <a href="http://www.crystalisconsulting.com">Crystalis Consulting</a></p>
		</footer>
	</div>
    </form>
	
	<%--<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>--%>
	<script src="js/libs/jquery-1.5.1.min.js" type="text/javascript"></script>
	<script type="text/javascript">!window.jQuery && document.write(unescape('%3Cscript src="js/libs/jquery-1.5.1.min.js"%3E%3C/script%3E'))</script>
	<script src="js/plugins.js" type="text/javascript"></script>
	<script src="js/script.js" type="text/javascript"></script>
	<!--[if lt IE 7 ]>
	<script src="js/libs/dd_belatedpng.js"></script>
	<script> DD_belatedPNG.fix('img, .png_bg');</script>
	<![endif]--></body>
</html>